#pragma once
#include "DBProc.h"
class Dict
{
private:
	WCHAR szName[50];
	WCHAR szType[30];

public:
	Dict(void);
	~Dict(void);

	bool AddDic();
	int CountWord();
	bool DeleteWord(LPTSTR word);
	bool AddWord(LPTSTR pronoun,LPTSTR word,LPTSTR dic,
		LPTSTR mean,LPTSTR type,LPTSTR exam,LPTSTR dicType, LPTSTR dictName,int flag = 0);//flag = 0:add all,flag = 1:add only mean
	_bstr_t SearchWord();

//utility 
private:
	DBProc dbAcess;
public:
	void SetDict(LPTSTR name, LPTSTR type){wcscpy(szName,name); wcscpy(szType,type);}

};

